package com.atmc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class CsuController {
    @RequestMapping("/hello")
    @ResponseBody
    public String index(){
        return "你好,曹雅贝!";
    }
    @RequestMapping("/liyuan")
    public String liyuan(Model model){
        model.addAttribute("msg","我喜欢你");
        return "index";
    }

}
